package com.huitone.gddw.service.dto.monitoring.environment.host;

import java.util.List;

import com.huitone.gddw.common.excel.ColToProperty;
import com.huitone.gddw.common.excel.TabCol;
import com.huitone.gddw.service.dto.monitoring.base.WarnRecvDTO;

/**
 * 主机总监控
 * @author wuluodan
 *
 */
public class HostTotalMonitorDTO {

	@ColToProperty
	@TabCol(Index = 1, title = "序号", width = "")
	private Integer seq;
	
	@ColToProperty
	@TabCol(Index = 2, title = "时间", width = "")
	private String insertTime;
	
	@ColToProperty
	@TabCol(Index = 3, title = "主机名", width = "")
	private String objName;
	
	@ColToProperty
	@TabCol(Index = 4, title = "IP", width = "")
	private String hostIp;
	
	@ColToProperty
	@TabCol(Index = 5, title = "当前异常事件数", width = "")
	private Long curEventCount;
	
	@ColToProperty
	@TabCol(Index = 6, title = "总异常事件数", width = "")
	private Long tolEventCount;
	
//	private List<WarnRecvDTO> list;
	
	@ColToProperty
	@TabCol(Index = 10, title = "主机用途", width = "")
	private String remark;
	
	private String recvMan;
	
	@ColToProperty
	@TabCol(Index = 7, title = "监控负责人", width = "")
	private String userName;
	
	@ColToProperty
	@TabCol(Index = 8, title = "手机号码", width = "")
	private String phoneNumber;
	
	@ColToProperty
	@TabCol(Index = 9, title = "邮箱", width = "")
	private String mailBox;

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public String getInsertTime() {
		return insertTime;
	}

	public void setInsertTime(String insertTime) {
		this.insertTime = insertTime;
	}

	public String getObjName() {
		return objName;
	}

	public void setObjName(String objName) {
		this.objName = objName;
	}

	public String getHostIp() {
		return hostIp;
	}

	public void setHostIp(String hostIp) {
		this.hostIp = hostIp;
	}

	public Long getCurEventCount() {
		return curEventCount;
	}

	public void setCurEventCount(Long curEventCount) {
		this.curEventCount = curEventCount;
	}

	public Long getTolEventCount() {
		return tolEventCount;
	}

	public void setTolEventCount(Long tolEventCount) {
		this.tolEventCount = tolEventCount;
	}

//	public List<WarnRecvDTO> getList() {
//		return list;
//	}
//
//	public void setList(List<WarnRecvDTO> list) {
//		this.list = list;
//	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getRecvMan() {
		return recvMan;
	}

	public void setRecvMan(String recvMan) {
		this.recvMan = recvMan;
	}

	public String getUserName() {
		return getsplit() == null ? "" : getsplit()[1];
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPhoneNumber() {
		return getsplit() == null ? "" : getsplit()[2];
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getMailBox() {
		return getsplit() == null ? "" : getsplit()[3];
	}

	public void setMailBox(String mailBox) {
		this.mailBox = mailBox;
	}
	
	public String[] getsplit() {
		if (null == this.recvMan) {
			return null;
		}
		return this.recvMan.split(",");
	}
	
}
